//
//  LineIndicatorView.h
//  OCDemo
//
//  Created by zhumuzhi on 2021/8/5.
//
//  滚动指示条
//

/**
 * 使用方式：父类的滚动控件内计算比例，为滚动条赋值
 * - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
 *      CGPoint point = scrollView.contentOffset;
 *      CGFloat percent = point.x / (kScreenWidth-kAutoWithSize(32));
 *      self.indicatorView.indeicatorPercent = percent;
 * }
 */

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface LineIndicatorView : UIView

/**
 * 指示器-颜色（不设置默认为黑色）
 */
@property (nonatomic, strong) UIColor *indeicatorColor;

/**
 * 指示器-X坐标的百分比
 */
@property (nonatomic, assign) CGFloat indeicatorPercent;


@end

NS_ASSUME_NONNULL_END
